package com.example.demo.mapper;

import com.example.demo.entity.Buy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BuyMapper {

    public List<Buy> selectUserId(String id);


    Integer insertBuy(@Param("Buy")Buy buy);

    public List<Buy> selectAll();

}
